package com.yixun.qfbao.model.enums;

public enum DefaultReportModelEnum {

    PREMISES_NAME("报备项目",1L,1),
    CUSTOMER_NAME("客户姓名",2L,1),
    CUSTOMER_SEX("客户性别",3L,1),
    MOBILE("客户号码",4L,1),
    STORE_NAME("分销公司",5L,1),
    AGENCY_NAME("中介经纪人",6L,1),
    AGENCY_PHONE("经纪人电话",7L,1),
    VISIT_TIME("预计到访时间",8L,1),
    REPORT_TIME("报备时间",9L,1),
    RECOMMENDER("报备推荐人",10L,1);

    public String getModelColumn() {
        return modelColumn;
    }

    public void setModelColumn(String modelColumn) {
        this.modelColumn = modelColumn;
    }

    public Long getModeOrder() {
        return modeOrder;
    }

    public void setModeOrder(Long modeOrder) {
        this.modeOrder = modeOrder;
    }

    public Integer getModelType() {
        return modelType;
    }

    public void setModelType(Integer modelType) {
        this.modelType = modelType;
    }

    private String modelColumn;

    private Long modeOrder;

    private Integer modelType;

    DefaultReportModelEnum(String modelColumn, Long modeOrder,Integer modelType) {
        this.modelColumn = modelColumn;
        this.modeOrder = modeOrder;
        this.modelType = modelType;
    }

    public static DefaultReportModelEnum getByCode(String code) {
        for (DefaultReportModelEnum item : DefaultReportModelEnum.values()) {
            if (item.getModelColumn().equals(code)) {
                return item;
            }
        }
        return null;
    }
}
